package grape.sequence.rest.client.impl.generator;

import grape.sequence.rest.client.generator.SequenceGeneratorClient;
import grape.sequence.rest.generator.mvc.GeneratorInnerController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/8/21 16:33
 */
@Component
public class SequenceGeneratorClientImpl implements SequenceGeneratorClient {

    @Autowired
    private GeneratorInnerController generatorInnerController;
    @Override
    public String nextByCode(String code) {
        return generatorInnerController.nextByCode(code);
    }

    @Override
    public String nextById(String id) {
        return generatorInnerController.nextById(id);
    }
}
